#include <iostream.h> // Zadanie 5.9
#include <iomanip.h>
#include <conio.h>

const n = 10;
int i;
float x = 0, y, krok = 0.5;

float oblicz(float a)
{
float oblicz;

oblicz = a*a+1;
return oblicz;
}

main()
{
cout << " x" << "\t" << " y" << endl;
cout << "==============" << endl;
for (i = 0; i <= n; i++)
{
y = oblicz(x);
cout << fixed;
cout << setprecision(2);
cout << x << "\t" << y << endl;
x=x+krok;
}

getch(); // czeka na nacisniecie dowolnego klawisza
}
